<?php

!defined('IN_APP') && exit('Access Denied');

class admin_datacontrol extends controlbase {


    function ondefault() {
        
    }

    /* 导出数据库 */
    function onexport() {
    	 $this('user')->export_csv('data/user.csv');
        //$tpllist = $this('setting')->tpl_list();
        if (isset($this->post['submit'])) {
            $this->setting['site_name'] = $this->post['site_name'];
            $this('user')->export_csv('data/user.csv');
        }
        include template('setting_base');
    }


}
